<template>
  <div>
    A
    <button @click="emit">emit</button> 
  </div>
</template>
<script setup lang='ts'>
import {getCurrentInstance} from 'vue'
const instance = getCurrentInstance()
const emit = ()=>{
  instance?.proxy?.$Bus.emit('on-xiaoheng','mitt')
}
</script>
<style scoped lang='less'>

</style>